package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.LoginBean;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface AddAddressContract {
    interface Model {
        Flowable<AddAddressBeen> addAddress(String realname, String mobile, String lng, String lat, String is_default, String address_info, String house_number, String id, String label);

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onAddAddressSuccess(AddAddressBeen bean);
    }

    interface Presenter {
        /**
         *
         */
        void addAddres(String realname, String mobile, String lng, String lat, String is_default, String address_info, String house_number, String id, String label);
    }
}
